package com.tour.modules.web.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tour.modules.web.dao.TWorkOrderDao;
import com.tour.modules.web.entity.TWorkOrderEntity;
import com.tour.modules.web.service.TWorkOrderService;
import com.tour.modules.web.vo.TWorkOrderVo;

@Service("tWorkOrderService")
public class TWorkOrderServiceImpl implements TWorkOrderService {
	@Autowired
	private TWorkOrderDao tWorkOrderDao;

	@Override
	public TWorkOrderEntity queryObject(Long id) {
		return tWorkOrderDao.queryObject(id);
	}

	@Override
	public List<TWorkOrderEntity> queryList(Map<String, Object> map) {
		return tWorkOrderDao.queryList(map);
	}

	@Override
	public int queryTotal(Map<String, Object> map) {
		return tWorkOrderDao.queryTotal(map);
	}

	@Override
	public void save(TWorkOrderEntity tWorkOrder) {
		tWorkOrderDao.save(tWorkOrder);
	}

	@Override
	public void update(TWorkOrderEntity tWorkOrder) {
		tWorkOrderDao.update(tWorkOrder);
	}

	@Override
	public void delete(Long id) {
		tWorkOrderDao.delete(id);
	}

	@Override
	public void deleteBatch(Long[] ids) {
		tWorkOrderDao.deleteBatch(ids);
	}

	@Override
	public List<TWorkOrderVo> queryListAll(Map<String, Object> params) {

		return tWorkOrderDao.queryListAll(params);
	}

}
